package com.example.entity;

import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author liu
 * @since 2022-03-19
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("t_medicine_info")
@ApiModel(value="MedicineInfo对象", description="")
public class MedicineInfo implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "药品id")
    @TableId(value = "m_id", type = IdType.AUTO)
    private Integer m_id;

    @ApiModelProperty(value = "药品通用名")
    @TableField("m_name")
    private String m_name;

    @ApiModelProperty(value = "药品库存")
    @TableField("m_inventory")
    private Integer m_inventory;

    @ApiModelProperty(value = "药品单位")
    @TableField("m_unit")
    private String m_unit;

    @ApiModelProperty(value = "药品规格")
    @TableField("m_specification")
    private String m_specification;

    @ApiModelProperty(value = "药品单价")
    @TableField("m_specification")
    private String m_price;

    @ApiModelProperty(value = "药品总价")
    @TableField("m_specification")
    private String m_amount;

    @ApiModelProperty(value = "进购件数")
    @TableField("m_specification")
    private String m_purchasenum;

    @ApiModelProperty(value = "生产厂家")
    @TableField("m_manufacturer")
    private String m_manufacturer;

    @ApiModelProperty(value = "功能主治")
    @TableField("m_majorfunction")
    private String m_majorfunction;

    @ApiModelProperty(value = "不良反应")
    @TableField("m_adversereaction")
    private String m_adversereaction;

    @ApiModelProperty(value = "禁忌")
    @TableField("m_taboos")
    private String m_taboos;

    @ApiModelProperty(value = "有效期")
    @TableField("m_validuntil")
    private Date m_validuntil;

    @ApiModelProperty(value = "药品种类")
    @TableField("m_kinds")
    private String m_kinds;

    @ApiModelProperty(value = "条形码")
    @TableField("m_batchnum")
    private String m_batchnum;

    @ApiModelProperty(value = "批准文号")
    @TableField("m_approvalnum")
    private String m_approvalnum;

    @ApiModelProperty(value = "是否非处方药")
    @TableField("m_otc")
    private String m_otc;

    @ApiModelProperty(value = "用户id")
    @TableField("m_userid")
    private Integer m_userid;


}
